package cn.juque.datapipeline.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>任务字段映射</li>
 * </ul>
 * {@code @date} 2023-03-31 16:33:58
 **/
@Data
@TableName(value = "DB_TASK_FIELD_MAPPING_INFO")
public class TaskFieldMappingInfo extends BaseEntity {

    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 任务ID
     */
    @TableField(value = "TASK_ID")
    private String taskId;

    /**
     * 源字段
     */
    @TableField(value = "SOURCE_FIELD")
    private String sourceField;

    /**
     * 是否主键
     */
    @TableField(value = "ID_FLAG")
    private Integer idFlag;

    /**
     * 目标字段
     */
    @TableField(value = "TARGET_FIELD")
    private String targetField;

    /**
     * 表达式
     */
    @TableField(value = "EXPRESSION")
    private String expression;

    /**
     * 备注
     */
    @TableField(value = "REMARK")
    private String remark;

}
